﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="AgriMarketWebProj.AgriMarketService" %>
<%@ Import Namespace="AgriMarketWebProj.Models" %>
<%@ Import Namespace="System.Web.Script.Serialization" %>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
    AgriMarket|Đấu giá
</asp:Content>


<asp:Content ID="ScriptContent" ContentPlaceHolderID="ScriptContent" runat="server">
    <script src="../../Scripts/AgriProj/Auction/AuctionView.js" type="text/javascript"></script>
    <script src="../../Scripts/AgriProj/Auction/Auction_AuctionIndex.js" type="text/javascript"></script>

    <link href="../../Content/Auction/AuctionView.css" rel="stylesheet" type="text/css" />
</asp:Content>
<%--<asp:Content ID="RightContent" ContentPlaceHolderID="RightPanel" runat="server">
    <div id='followedAuctionDiv' name='followedAuctionDiv'>
        <div id='errorFollowedAuctionsDiv'></div>
        <% if (ViewBag.CurrentUserAccount!=null) Html.RenderAction("ViewFollowedAuctions", new { crrUserAccName = ViewBag.CurrentUserAccount.UserName }); 
            %>
    </div>
</asp:Content>--%>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
	<div id="menu_vertical">
		<div id ="menurao" >
			<ul id="css3menu1" class="topmenu hormenu">
				<li class="topfirst"><a href="/Auction/Index" class="horizontal_menu_a"><img src="../../Content/Images/bell.png" alt=""/>Đấu giá bán</a></li>
				<li class="topmenu"><a href="/Auction/ViewSellAuctionIndex" class="horizontal_menu_a"><img src="../../Content/Images/hammer2.png" alt=""/>Đấu giá mua</a></li>
				<li class="topmenu"><a href="#" class="horizontal_menu_a" onClick="return false;"></a></li>
                <li class="toplast"><a href="#" class="horizontal_menu_a" onClick="return false;"></a></li>
			</ul>
		</div>
	</div>
    <%
        Auction auction = Model;
        JavaScriptSerializer serializer = new JavaScriptSerializer();
        var serializedProducts = serializer.Serialize(ViewBag.AllProducts);
        Response.Write("<script type='text/javascript'>allProducts=" + serializedProducts + "</script>");
    %>
	<div id="data">
        <% 
            if (auction != null)
            {
                Html.RenderAction("ViewAuction", new { auction = auction });
            }
            %>
	</div>
    <div id='dim'></div>
    
</asp:Content>
